/*************************************************************************
	> File Name: main.cc
	> Author: Joker
	> Mail: mahongtao@foxmail.com 
	> Created Time: 2020-09-22 11:40:08
 ************************************************************************/

#include "Decorator.h"

#include <iostream>
using namespace std;
 
void test0(){
    Component * pComponent = new ConcreateComponent();
    Decorator * pDecorator = new ConcreateDecorator(pComponent);

    pDecorator->Operation();

    delete pDecorator;
}

int main(int argc,char *argv[])
{
    test0();
    return 0;
}
